package com.news.entity;

/**
 * 实体类
 * 
 * @author ThinkPad 与数据库列一一对应
 */
public class User {
	private Integer uid;
	private String username;
	private String nickname;
	private String from;
	private String password;
	private Integer status;
	private Integer level;

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Override
	public String toString() {
		return "User [uid=" + uid + ", username=" + username + ", nickname=" + nickname + ", from=" + from
				+ ", password=" + password + ", status=" + status + ", level=" + level + "]";
	}

	public User(Integer uid, String username, String nickname, String from, String password, Integer status,
			Integer level) {
		super();
		this.uid = uid;
		this.username = username;
		this.nickname = nickname;
		this.from = from;
		this.password = password;
		this.status = status;
		this.level = level;
	}

	public User() {
	}

}
